package com.thon.entity.system;



import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.commons.lang3.StringUtils;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.thon.commons.config.Global;
import com.thon.commons.utils.ImageUrl;
import com.thon.entity.util.IdEntity;

@Entity
@Table(name = "system_dicdata")
@JsonIgnoreProperties(ignoreUnknown = true)
public class SystemDicData extends IdEntity {
	
	private static final long serialVersionUID = -2882541081318874188L;
	private SystemDic systemDic;
	private String dicDataCode;
	private String name;
	private Integer sort;
	private Integer enabled;	
	private String description;
	
	
	@ManyToOne(cascade = CascadeType.MERGE)
	@JoinColumn(name= "dic_id", nullable = false)
	@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
	public SystemDic getSystemDic() {
		return systemDic;
	}
	public void setSystemDic(SystemDic systemDic) {
		this.systemDic = systemDic;
	}
	public String getDicDataCode() {
		return dicDataCode;
	}
	public void setDicDataCode(String dicDataCode) {
		this.dicDataCode = dicDataCode;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	public Integer getEnabled() {
		return enabled;
	}
	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}	
	
}
